package com.example.aihub.service;

import com.example.aihub.entity.Comment;
import com.example.aihub.entity.Post;
import java.util.List;
import java.util.Optional;

public interface CommentService {
    Comment createComment(Comment comment);
    Comment replyToComment(Long commentId, Comment reply);
    List<Comment> getCommentsByPost(Post post);
    List<Comment> getCommentsByPostId(Long postId);
    Optional<Comment> getCommentById(Long id);
    Comment updateComment(Comment comment);
    void deleteComment(Long id);
}